package com.qiaoyanqing.textdemoqyq7.SQL;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Administrator on 2016/11/16.
 */

public class MyCollegeHelper extends SQLiteOpenHelper {

    private static String dbname="shoucang.db";
    private static int dbversion=1;


    public MyCollegeHelper(Context context ) {
        super(context, dbname, null, dbversion);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {

        db.execSQL("create table if not exists shoucang(_id integer primary key autoincrement,id text,title text,source text,create_time text)");

    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }

}
